package com.xugui.thumb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xugui.thumb.pojo.entity.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface BlogMapper extends BaseMapper<Blog> {
    /**
     * 批量更新点赞数
     * @param countMap 博客id: 新增点赞数
     */
    void batchUpdateThumbCount(@Param("countMap") Map<Long, Long> countMap);

}




